package cn.scw.project.separate.service.impl;

import cn.scw.project.separate.domain.FacSaInfo;
import cn.scw.project.separate.mapper.FacSaInfoMapper;
import cn.scw.project.separate.service.FacSaInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FacSaInfoServiceImpl implements FacSaInfoService {

    @Resource
    private FacSaInfoMapper facSaInfoMapper;

    @Override
    public void save(FacSaInfo facSaInfo) {
        facSaInfoMapper.insert(facSaInfo);
    }

    @Override
    public void clear(String id) {
        facSaInfoMapper.delete(id);
    }

    @Override
    public List<FacSaInfo> querySaId(String facId) {
        return facSaInfoMapper.querySaId(facId);
    }

    @Override
    public void deleteFacUser(String facId, Long saId) {
        facSaInfoMapper.deleteFacUser(facId, saId);
    }
}
